package cn.wellwan.strategypattern;

/**
 * creator: maokai
 * on: 2018/3/26
 * description:
 */
public class MallardDuck extends Duck {

    public MallardDuck () {
        flyBehavior =  new FlyWithWings();
        quackBehavior =  new Quack();
    }

    @Override
    public void display () {
        System.out.println("I'm a green duck");
    }
}
